<?php
	require_once '../Tool/Common/PrepareInput.php';

    session_start();
    if (empty($_SESSION["userType"])) {
        $url="../Index.php";
        include_once '../Tool/Common/Redirect.php';
        exit();
    }

    if($_SESSION["userType"]!="System Admin"){
        $url="../Index.php";
        include_once '../Tool/Common/Redirect.php';
        exit();
    }
    
    $CentreId = "";
    $flag=0;
    if(isset($_REQUEST['CentreId'])) { 
        $CentreId=prepareInput($_REQUEST['CentreId']); 
    }
    if(preg_match("/^[0-9]*$/",$CentreId)){
		$flag=1;
	}
    echo $flag;
?>